package services.impl;

import beans.Log;
import beans.Organ;
import dao.LogDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import services.LogServices;

import java.util.List;

@Service
public class LogServicesImpl implements LogServices {

    @Autowired
    private LogDao logDao;

    @Override
    public List<Log> selectList() {
        List<Log> list = logDao.selectList();
        return list;

    }

    @Override
    public List<Log> selectSelective(String selectText, String inputText) {
        List<Log> list = logDao.selectSelective(selectText,inputText);
        return list;
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        int i = logDao.deleteByPrimaryKey(id);
        return i;
    }

    @Override
    public int insert(Log record) {
        int i = logDao.insert(record);
        return i;
    }

    @Override
    public int insertSelective(Log record) {
        int i = logDao.insertSelective(record);
        return i;
    }

    @Override
    public Log selectByPrimaryKey(Integer id) {
        Log log = logDao.selectByPrimaryKey(id);
        return log;
    }

    @Override
    public int updateByPrimaryKeySelective(Log record) {
        int i = logDao.updateByPrimaryKeySelective(record);
        return i;
    }

    @Override
    public int updateByPrimaryKey(Log record) {
        int i = logDao.updateByPrimaryKey(record);
        return i;
    }

    @Override
    public int count() {
        return logDao.count();
    }
}
